﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.VersionApps;

namespace LeadThing.AbpZeroTemplate.VersionApps.Dtos
{
    /// <summary>
    /// APP版本号编辑用Dto
    /// </summary>
    [AutoMap(typeof(VersionApp))]
    public class VersionAppEditDto
    {

        /// <summary>
        ///   主键Id
        /// </summary>
        [DisplayName("主键Id")]
        public long? Id { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        [DisplayName("版本号")]
        [MaxLength(100)]
        public string Version { get; set; }

        /// <summary>
        /// 版本描述
        /// </summary>
        [DisplayName("版本描述")]
        [MaxLength(500)]
        public string Desc { get; set; }

        /// <summary>
        /// 更新状态（0:不更新1：建议更新2：强制更新）
        /// </summary>
        [DisplayName("更新状态（0:不更新1：建议更新2：强制更新）")]
        [MaxLength(10)]
        public string Flag { get; set; }

        /// <summary>
        /// 下载地址
        /// </summary>
        [DisplayName("下载地址")]
        [MaxLength(500)]
        public string DownLoadUrl { get; set; }

        /// <summary>
        /// APP类型
        /// </summary>
        [DisplayName("APP类型")]
        public string AppType { get; set; }

    }
}
